// 读文件
const fs = require('node:fs/promises')
async function readFile() {
    const content = await fs.readFile('test.txt')
    // const content = await fs.readFile('test.txt', { encoding: 'utf-8' })
    console.log(content.toString('utf-8'))
}

readFile()